{% extends 'cate_list.html' %}


{% block title %}
{{ post.title }}
{% endblock title %}

{% block breadcrumb %}
<nav class="breadcrumb is-small" aria-label="breadcrumbs">
    <ul>
        <li><a href="/">首页</a></li>
        <li><a href="{{ url_for('blog.cates', cate_id=cate.cate_id) }}">{{ cate.name }}</a></li>
        <li class="is-active"><a href="#" aria-current="page">{{ post.title }}</a></li>
    </ul>
</nav>
{% endblock breadcrumb %}

{% block cate_box %}
<div class="pl-2">
    <h1 class="is-size-3">
        {{ post.title }}
    </h1>
    <p class="has-text-grey-light is-size-6 mt-1">
        <span class="icon"><i class="mdi mdi-clipboard-text-clock-outline"></i></span>{{ post.add_date }}
        <span class="icon"><i class="mdi mdi-shape-outline"></i></span>{{ post.category.name }}
    </p>
    <div class="content has-text-grey mt-1">{{ post.content|safe }}</div>

<div class="column">
        <div class="box is-shadowless" style="border:solid 1px #eee ;">
            <a href="{{ url_for('admin.article_del', post_id=post.post_id,cate_id=cate.cate_id) }}" class="mdi mdi-plus-thick" style="margin-left: 80%;">
                <span class="icon">
                    <i class="mdi mdi-trash-can-outline"></i>
                </span>
                删除
            </a>
        </div>
</div>
<hr>
{% endblock cate_box %}

